import {
  request
} from "../utils/http";

// 获取轮播图
export function carouselImgList(params) {
  return request({
    url: "/api/cm/carouselImgList",
    ...params,
    method: "GET"
  })
}

// 查询栏目列表
export function getCategorylist(params) {
  return request({
    url: "/api/cm/categoryList",
    ...params,
    method: "GET"
  })
}

// 查询文章列表
export function getContentList(params) {
  return request({
    url: "/api/cm/contentList",
    ...params,
    method: "GET"
  })
}

// 查询文章详情
export function getContentDetail(params) {
  return request({
    url: "/api/cm/contentDetail",
    ...params,
    method: "GET"
  })
}
//添加举报
export function addreport(params) {
  return request({
    url: "/api/cm/addComplaint",
    ...params,
    method: "PUT"
  })
}
//查询推荐反馈
export function getShowFeedback(params) {
  return request({
    url: "/api/cm/getShowFeedback",
    ...params,
    method: "GET"
  })
}